<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>B网页</title>
</head>
<body>
    <button type="button" onclick="relodNowPage()" style="background-color: lightblue;">点一点,领取百万现金</button>
    <button type="button" onclick="doBack()" style="background-color: aqua;">后退</button>
    <button type="button" onclick="doFoward()" style="background-color: bisque;">前进到C</button>
</body>
<script type="text/javascript">
// 页面跳转功能
  function doBack(){
      history.back();
  }
   function doFoward(){
    location.href='C.html';
   }
   //页面刷新功能
   function relodNowPage(){
       location.reload();
   }
</script>
</html>